package com.friends.digitpic.service.service.impl;

import javax.annotation.Resource;

import org.jeecgframework.minidao.pojo.MiniDaoPage;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.stereotype.Component;
import com.friends.digitpic.service.dao.UserfavoritepicgroupDao;
import com.friends.digitpic.service.entity.UserfavoritepicgroupEntity;
import com.friends.digitpic.service.service.UserfavoritepicgroupService;

/**
 * 描述：用户收藏图集
 * @author: jiangge xia
 * @since：2018年09月15日 22时44分22秒 星期六 
 * @version:1.0
 */

@Transactional
@Component
public class UserfavoritepicgroupServiceImpl implements UserfavoritepicgroupService {

	@Resource(name = "userfavoritepicgroupDao")
	private UserfavoritepicgroupDao userfavoritepicgroupDao;


	public UserfavoritepicgroupEntity getUserfavoritepicgroup(String favoritepicgroupid) {
		return userfavoritepicgroupDao.get(favoritepicgroupid);
	}

	public int updateUserfavoritepicgroup(UserfavoritepicgroupEntity userfavoritepicgroup) {
		return userfavoritepicgroupDao.update(userfavoritepicgroup);
	}

	public void insertUserfavoritepicgroup(UserfavoritepicgroupEntity userfavoritepicgroup) {
		userfavoritepicgroupDao.insert(userfavoritepicgroup);
		
	}

	public MiniDaoPage<UserfavoritepicgroupEntity> getUserfavoritepicgroupAll(UserfavoritepicgroupEntity userfavoritepicgroup, int page, int rows) {
		return userfavoritepicgroupDao.getAll(userfavoritepicgroup, page, rows);
	}

	public void deleteUserfavoritepicgroup(UserfavoritepicgroupEntity userfavoritepicgroup) {
		userfavoritepicgroupDao.delete(userfavoritepicgroup);
		
	}
}
